use inline_python::python;
use inline_python::Context;

fn main() {
    let arr = vec![1, 2, 3];
    let sum = 0;
    let pyContext: Context = python! {
        from numpy import *

        class Triangle():
            def __init__(self, r = 10):
                self.r = r

            def say_r(self):
                print(self.r)

        sum = 'sum
        for i in 'arr:
            sum += i 
        print(sum)
        xx = Triangle(2)
        xx.say_r()
    };
    println!("{}", pyContext.get::<i32>("sum"));
}
